/******
 * waitpid.c - Simple wait usage
 *********/
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <stdio.h>
#include <stdlib.h>

void aa(unsigned int irq)
{
  printf("im aa %d\n", irq);
}

void bb(unsigned int irq)
{
  printf("im bb %d\n", irq);
}

static void (*intc_enable_fns[])(unsigned int irq) =
{
  [0] = aa,
  [1] = bb,
  [2] = aa,
  [3] = aa,
  [4] = aa,
};

int main(
void)
{

  intc_enable_fns[0](12);
  intc_enable_fns[1](24);

  return 0;
  int ch;
  while ((ch = getchar()) != '\n')
  {
    putchar(ch);
    putchar(ch);
    fflush(stdout);
    sleep(1);
  }
  exit(EXIT_SUCCESS);
}
